﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using sql表结构对比.Model;
namespace sql表结构对比.Repository
{
    class deptRepository
    {
        //获取部门最新ID
        public int  GetNewDept_id()
        {
            DesTestEntities DTEntity = new DesTestEntities();
            var Curmax = DTEntity.hos_dic_dept.Select(u => u.dept_id).ToList().Max();
            int Max = Convert.ToInt32(Curmax);
            int result = Max + 1;
            return result;

        }

    }
}
